<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SSE Example</title>
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <style>
        body {
            background-color: #f8f9fa;
            padding-top: 2rem;
        }

        .card {
            transition: transform 0.2s;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-8 text-center mb-4">
                <h1 class="display-4">Server-Sent Events Example</h1>
                <p class="lead text-muted">Choose a chat interface to continue</p>
            </div>
        </div>
        <div class="row justify-content-center">
            <div class="col-md-4 mb-4">
                <div class="card h-100">
                    <div class="card-body text-center">
                        <i class="fas fa-comments fa-3x mb-3 text-primary"></i>
                        <h5 class="card-title">Simple Chat</h5>
                        <p class="card-text">Basic chat interface without session management</p>
                        <button onclick="window.location.href = 'src/solonai-chat-simple.html'" class="btn btn-primary">
                            Open Chat <i class="fas fa-arrow-right ms-2"></i>
                        </button>
                    </div>
                </div>
            </div>
            <div class="col-md-4 mb-4">
                <div class="card h-100">
                    <div class="card-body text-center">
                        <i class="fas fa-comment-dots fa-3x mb-3 text-primary"></i>
                        <h5 class="card-title">Session Chat</h5>
                        <p class="card-text">Chat interface with session management</p>
                        <button onclick="window.location.href = 'src/solonai-chat-session.html'"
                            class="btn btn-primary">
                            Open Chat <i class="fas fa-arrow-right ms-2"></i>
                        </button>
                    </div>
                </div>
            </div>
            <div class="col-md-4 mb-4">
                <div class="card h-100">
                    <div class="card-body text-center">
                        <i class="fas fa-exchange-alt fa-3x mb-3 text-primary"></i>
                        <h5 class="card-title">SSE Chat</h5>
                        <p class="card-text">Real-time chat using Server-Sent Events</p>
                        <button onclick="window.location.href = 'src/solonai-chat-sse.html'" class="btn btn-primary">
                            Open Chat <i class="fas fa-arrow-right ms-2"></i>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script type="module">
        // Vite will automatically handle module imports here
    </script>
</body>

</html>